<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在引号前添加反斜杠被认定为引号</title>
</head>

<body>
    <h1>JavaScript 字符串</h1>
    <p>转义序列 \" 在字符串中插入双引号。</p>
    <p id="demo"></p>
    <script>
        var x = "中国是瓷器的故乡，因此 china 与\"China（中国）\"同名。";
        document.getElementById("demo").innerHTML = x;
    </script>
</body>

</html>